# Maintainer: Felix Yan <felixonmars@archlinux.org>

pkgname=yamdi
pkgver=1.9
pkgrel=4
pkgdesc="A metadata injector for FLV files"
arch=('loong64' 'x86_64')
url="http://yamdi.sourceforge.net/"
license=('custom:BSD')
depends=('glibc')
source=("https://downloads.sourceforge.net/yamdi/$pkgname-$pkgver.tar.gz")
sha512sums=('a5c70ec65a074be3a9931212c3324c933ce44df22ef63407f80fc636213664d68d9422d7987c32f4a1bf7c43ec381f991c52ca537a7033e67acaaa4c98595c47')

build() {
  cd "$srcdir/$pkgname-$pkgver"
  make
}

package() {
  cd "$srcdir/$pkgname-$pkgver"
  install -Dm 0755 -o root yamdi "$pkgdir/usr/bin/yamdi"
  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
  install -Dm644 man1/yamdi.1 "$pkgdir/usr/share/man/man1/yamdi.1"
}

# vim:set ts=2 sw=2 et:
